package com.riku.security.mapper;

import com.riku.security.model.*;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SeCommonMapper {

    List<SeSecurityMenu> selectMenuByUserId(SeSecurityQuery query);

    List<SeSecurityApi> selectApiByUserId(SeSecurityQuery query);

    List<SeSecurityApi> selectApiByUserIdMultiCodes(SeSecurityQuery query);

    List<Long> selectRoleByUserIdMultiCodes(SeSecurityQuery query);

    List<SeSecurityApi> selectApiByUserIdMultiRoles(SeRoleApiQuery query);

    List<SeApiRole> getApiAndRole(String serviceCode);
}